package com.qdlc.p2p.biz.borrowworker.worker;

import com.qdlc.p2p.dal.dto.Borrow;
import com.qdlc.p2p.dal.dto.BorrowConfig;
import com.qdlc.p2p.dal.dto.BorrowTender;

/**
 * 0元购标
 * 
 * @author ygw
 * @date 2016-5-3 下午3:17:07
 * @version x
 */
public class DeliverGoodsBorrowWorker extends BaseBorrowWorker {

	@SuppressWarnings("unused")
	private static final long serialVersionUID = -965497211520156565L;
	
	public DeliverGoodsBorrowWorker(Borrow data, BorrowConfig config, boolean flag) {
		super(data, config, flag);
	}

	/**
	 * 借款标跳过复审，复审成功
	 */
	@Override
	public void immediateRepayAfterTender(BorrowTender tender) {
		super.immediateInterestAfterTender(tender);
		if(this.data.getAccountYes() >= this.data.getAccount()){
			super.skipReview(); //满标如果跳过复审将状态改为3
		}
	}
}
